package com.myProject.bean;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class TShipment {

    private int pkId;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date time;
    private TClass tClass;
    private String people;
    private String name;
    private String type;
    private int number;
    private String control;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date endTime;

    public int getPkId() {
        return pkId;
    }

    public void setPkId(int pkId) {
        this.pkId = pkId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public TClass gettClass() {
        return tClass;
    }

    public void settClass(TClass tClass) {
        this.tClass = tClass;
    }

    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getControl() {
        return control;
    }

    public void setControl(String control) {
        this.control = control;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "TShipment{" +
                "pkId=" + pkId +
                ", time=" + time +
                ", tClass=" + tClass +
                ", people='" + people + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", number=" + number +
                ", control='" + control + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
